home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / ftp.man < prev    next >
Encoding:
Text File  |  1989-01-18  |  31.2 KB  |  793 lines

  1.  
  2.  
  3.  
  4. FTP                       User Commands                       FTP
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ftp - ARPANET file transfer program
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ffttpp [ --vv ] [ --dd ] [ --ii ] [ --nn ] [ --gg ] [ hhoosstt ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _F_t_p is the user interface to the ARPANET standard File
  16.      Transfer Protocol.  The program allows a user to transfer
  17.      files to and from a remote network site.
  18.  
  19.      The client host with which _f_t_p is to communicate may be
  20.      specified on the command line.  If this is done, _f_t_p will
  21.      immediately attempt to establish a connection to an FTP
  22.      server on that host; otherwise, _f_t_p will enter its command
  23.      interpreter and await instructions from the user.  When _f_t_p
  24.      is awaiting commands from the user the prompt "ftp>" is pro-
  25.      vided to the user.  The following commands are recognized by
  26.      _f_t_p:
  27.  
  28.      !! [ _c_o_m_m_a_n_d [ _a_r_g_s ] ]
  29.           Invoke an interactive shell on the local machine.  If
  30.           there are arguments, the first is taken to be a command
  31.           to execute directly, with the rest of the arguments as
  32.           its arguments.
  33.  
  34.      $$ _m_a_c_r_o-_n_a_m_e [ _a_r_g_s ]
  35.           Execute the macro _m_a_c_r_o-_n_a_m_e that was defined with the
  36.           mmaaccddeeff command.  Arguments are passed to the macro
  37.           unglobbed.
  38.  
  39.      aaccccoouunntt [ _p_a_s_s_w_d ]
  40.           Supply a supplemental password required by a remote
  41.           system for access to resources once a login has been
  42.           successfully completed.  If no argument is included,
  43.           the user will be prompted for an account password in a
  44.           non-echoing input mode.
  45.  
  46.      aappppeenndd _l_o_c_a_l-_f_i_l_e [ _r_e_m_o_t_e-_f_i_l_e ]
  47.           Append a local file to a file on the remote machine.
  48.           If _r_e_m_o_t_e-_f_i_l_e is left unspecified, the local file name
  49.           is used in naming the remote file after being altered
  50.           by any _n_t_r_a_n_s or _n_m_a_p setting.  File transfer uses the
  51.           current settings for _t_y_p_e, _f_o_r_m_a_t, _m_o_d_e, and _s_t_r_u_c_t_u_r_e.
  52.  
  53.      aasscciiii
  54.           Set the file transfer _t_y_p_e to network ASCII.  This is
  55.           the default type.
  56.  
  57.      bbeellll Arrange that a bell be sounded after each file transfer
  58.           command is completed.
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. FTP                       User Commands                       FTP
  71.  
  72.  
  73.  
  74.      bbiinnaarryy
  75.           Set the file transfer _t_y_p_e to support binary image
  76.           transfer.
  77.  
  78.      bbyyee  Terminate the FTP session with the remote server and
  79.           exit _f_t_p.  An end of file will also terminate the ses-
  80.           sion and exit.
  81.  
  82.      ccaassee Toggle remote computer file name case mapping during
  83.           mmggeett commands.  When ccaassee is on (default is off),
  84.           remote computer file names with all letters in upper
  85.           case are written in the local directory with the
  86.           letters mapped to lower case.
  87.  
  88.      ccdd _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y
  89.           Change the working directory on the remote machine to
  90.           _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y.
  91.  
  92.      ccdduupp Change the remote machine working directory to the
  93.           parent of the current remote machine working directory.
  94.  
  95.      cclloossee
  96.           Terminate the FTP session with the remote server, and
  97.           return to the command interpreter.  Any defined macros
  98.           are erased.
  99.  
  100.      ccrr   Toggle carriage return stripping during ascii type file
  101.           retrieval.  Records are denoted by a carriage
  102.           return/linefeed sequence during ascii type file
  103.           transfer.  When ccrr is on (the default), carriage
  104.           returns are stripped from this sequence to conform with
  105.           the UNIX single linefeed record delimiter.  Records on
  106.           non-UNIX remote systems may contain single linefeeds;
  107.           when an ascii type transfer is made, these linefeeds
  108.           may be distinguished from a record delimiter only when
  109.           ccrr is off.
  110.  
  111.      ddeelleettee _r_e_m_o_t_e-_f_i_l_e
  112.           Delete the file _r_e_m_o_t_e-_f_i_l_e on the remote machine.
  113.  
  114.      ddeebbuugg [ _d_e_b_u_g-_v_a_l_u_e ]
  115.           Toggle debugging mode.  If an optional _d_e_b_u_g-_v_a_l_u_e is
  116.           specified it is used to set the debugging level.  When
  117.           debugging is on, _f_t_p prints each command sent to the
  118.           remote machine, preceded by the string "-->".
  119.  
  120.      ddiirr [ _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y ] [ _l_o_c_a_l-_f_i_l_e ]
  121.           Print a listing of the directory contents in the direc-
  122.           tory, _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y, and, optionally, placing the
  123.           output in _l_o_c_a_l-_f_i_l_e.  If interactive prompting is on,
  124.           _f_t_p will prompt the user to verify that the last argu-
  125.           ment is indeed the target local file for receiving ddiirr
  126.  
  127.  
  128.  
  129. Sprite v1.0              April 29, 1985                         2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. FTP                       User Commands                       FTP
  137.  
  138.  
  139.  
  140.           output.  If no directory is specified, the current
  141.           working directory on the remote machine is used.  If no
  142.           local file is specified, or _l_o_c_a_l-_f_i_l_e is --, output
  143.           comes to the terminal.
  144.  
  145.      ddiissccoonnnneecctt
  146.           A synonym for cclloossee.
  147.  
  148.      ffoorrmm _f_o_r_m_a_t
  149.           Set the file transfer _f_o_r_m to _f_o_r_m_a_t.  The default for-
  150.           mat is "file".
  151.  
  152.      ggeett _r_e_m_o_t_e-_f_i_l_e [ _l_o_c_a_l-_f_i_l_e ]
  153.           Retrieve the _r_e_m_o_t_e-_f_i_l_e and store it on the local
  154.           machine.  If the local file name is not specified, it
  155.           is given the same name it has on the remote machine,
  156.           subject to alteration by the current _c_a_s_e, _n_t_r_a_n_s, and
  157.           _n_m_a_p settings.  The current settings for _t_y_p_e, _f_o_r_m,
  158.           _m_o_d_e, and _s_t_r_u_c_t_u_r_e are used while transferring the
  159.           file.
  160.  
  161.      gglloobb Toggle filename expansion for mmddeelleettee, mmggeett and mmppuutt.
  162.           If globbing is turned off with gglloobb, the file name
  163.           arguments are taken literally and not expanded.  Glob-
  164.           bing for mmppuutt is done as in ccsshh(1).  For mmddeelleettee and
  165.           mmggeett, each remote file name is expanded separately on
  166.           the remote machine and the lists are not merged.
  167.           Expansion of a directory name is likely to be different
  168.           from expansion of the name of an ordinary file: the
  169.           exact result depends on the foreign operating system
  170.           and ftp server, and can be previewed by doing
  171.           `mmllss _r_e_m_o_t_e-_f_i_l_e_s --'.  Note:  mmggeett and mmppuutt are not
  172.           meant to transfer entire directory subtrees of files.
  173.           That can be done by transferring a ttaarr(1) archive of
  174.           the subtree (in binary mode).
  175.  
  176.      hhaasshh Toggle hash-sign (``#'') printing for each data block
  177.           transferred.  The size of a data block is 1024 bytes.
  178.  
  179.      hheellpp [ _c_o_m_m_a_n_d ]
  180.           Print an informative message about the meaning of _c_o_m_-
  181.           _m_a_n_d.  If no argument is given, _f_t_p prints a list of
  182.           the known commands.
  183.  
  184.      llccdd [ _d_i_r_e_c_t_o_r_y ]
  185.           Change the working directory on the local machine.  If
  186.           no _d_i_r_e_c_t_o_r_y is specified, the user's home directory is
  187.           used.
  188.  
  189.      llss [ _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y ] [ _l_o_c_a_l-_f_i_l_e ]
  190.           Print an abbreviated listing of the contents of a
  191.           directory on the remote machine.  If _r_e_m_o_t_e-_d_i_r_e_c_t_o_r_y
  192.  
  193.  
  194.  
  195. Sprite v1.0              April 29, 1985                         3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. FTP                       User Commands                       FTP
  203.  
  204.  
  205.  
  206.           is left unspecified, the current working directory is
  207.           used.  If interactive prompting is on, _f_t_p will prompt
  208.           the user to verify that the last argument is indeed the
  209.           target local file for receiving llss output.  If no local
  210.           file is specified, or if _l_o_c_a_l-_f_i_l_e is --, the output is
  211.           sent to the terminal.
  212.  
  213.      mmaaccddeeff _m_a_c_r_o-_n_a_m_e
  214.           Define a macro.  Subsequent lines are stored as the
  215.           macro _m_a_c_r_o-_n_a_m_e; a null line (consecutive newline
  216.           characters in a file or carriage returns from the ter-
  217.           minal) terminates macro input mode.  There is a limit
  218.           of 16 macros and 4096 total characters in all defined
  219.           macros.  Macros remain defined until a cclloossee command is
  220.           executed.  The macro processor interprets '$' and '\'
  221.           as special characters.  A '$' followed by a number (or
  222.           numbers) is replaced by the corresponding argument on
  223.           the macro invocation command line.  A '$' followed by
  224.           an 'i' signals that macro processor that the executing
  225.           macro is to be looped. On the first pass '$i' is
  226.           replaced by the first argument on the macro invocation
  227.           command line, on the second pass it is replaced by the
  228.           second argument, and so on.  A '\' followed by any
  229.           character is replaced by that character.  Use the '\'
  230.           to prevent special treatment of the '$'.
  231.  
  232.      mmddeelleettee [ _r_e_m_o_t_e-_f_i_l_e_s ]
  233.           Delete the _r_e_m_o_t_e-_f_i_l_e_s on the remote machine.
  234.  
  235.      mmddiirr _r_e_m_o_t_e-_f_i_l_e_s _l_o_c_a_l-_f_i_l_e
  236.           Like ddiirr, except multiple remote files may be speci-
  237.           fied.  If interactive prompting is on, _f_t_p will prompt
  238.           the user to verify that the last argument is indeed the
  239.           target local file for receiving mmddiirr output.
  240.  
  241.      mmggeett _r_e_m_o_t_e-_f_i_l_e_s
  242.           Expand the _r_e_m_o_t_e-_f_i_l_e_s on the remote machine and do a
  243.           ggeett for each file name thus produced.  See gglloobb for
  244.           details on the filename expansion.  Resulting file
  245.           names will then be processed according to _c_a_s_e, _n_t_r_a_n_s,
  246.           and _n_m_a_p settings.  Files are transferred into the
  247.           local working directory, which can be changed with
  248.           `llccdd directory'; new local directories can be created
  249.           with `!! mkdir directory'.
  250.  
  251.      mmkkddiirr _d_i_r_e_c_t_o_r_y-_n_a_m_e
  252.           Make a directory on the remote machine.
  253.  
  254.      mmllss _r_e_m_o_t_e-_f_i_l_e_s _l_o_c_a_l-_f_i_l_e
  255.           Like llss, except multiple remote files may be specified.
  256.           If interactive prompting is on, _f_t_p will prompt the
  257.           user to verify that the last argument is indeed the
  258.  
  259.  
  260.  
  261. Sprite v1.0              April 29, 1985                         4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. FTP                       User Commands                       FTP
  269.  
  270.  
  271.  
  272.           target local file for receiving mmllss output.
  273.  
  274.      mmooddee [ _m_o_d_e-_n_a_m_e ]
  275.           Set the file transfer _m_o_d_e to _m_o_d_e-_n_a_m_e.  The default
  276.           mode is "stream" mode.
  277.  
  278.      mmppuutt _l_o_c_a_l-_f_i_l_e_s
  279.           Expand wild cards in the list of local files given as
  280.           arguments and do a ppuutt for each file in the resulting
  281.           list.  See gglloobb for details of filename expansion.
  282.           Resulting file names will then be processed according
  283.           to _n_t_r_a_n_s and _n_m_a_p settings.
  284.  
  285.      nnmmaapp [ _i_n_p_a_t_t_e_r_n _o_u_t_p_a_t_t_e_r_n ]
  286.           Set or unset the filename mapping mechanism.  If no
  287.           arguments are specified, the filename mapping mechanism
  288.           is unset.  If arguments are specified, remote filenames
  289.           are mapped during mmppuutt commands and ppuutt commands issued
  290.           without a specified remote target filename.  If argu-
  291.           ments are specified, local filenames are mapped during
  292.           mmggeett commands and ggeett commands issued without a speci-
  293.           fied local target filename.  This command is useful
  294.           when connecting to a non-UNIX remote computer with dif-
  295.           ferent file naming conventions or practices.  The map-
  296.           ping follows the pattern set by _i_n_p_a_t_t_e_r_n and _o_u_t_p_a_t_-
  297.           _t_e_r_n.  _I_n_p_a_t_t_e_r_n is a template for incoming filenames
  298.           (which may have already been processed according to the
  299.           nnttrraannss and ccaassee settings).  Variable templating is
  300.           accomplished by including the sequences '$1', '$2',
  301.           ..., '$9' in _i_n_p_a_t_t_e_r_n.  Use '\' to prevent this spe-
  302.           cial treatment of the '$' character.  All other charac-
  303.           ters are treated literally, and are used to determine
  304.           the nnmmaapp _i_n_p_a_t_t_e_r_n variable values.  For exmaple, given
  305.           _i_n_p_a_t_t_e_r_n $1.$2 and the remote file name "mydata.data",
  306.           $1 would have the value "mydata", and $2 would have the
  307.           value "data".  The _o_u_t_p_a_t_t_e_r_n determines the resulting
  308.           mapped filename.  The sequences '$1', '$2', ...., '$9'
  309.           are replaced by any value resulting from the _i_n_p_a_t_t_e_r_n
  310.           template.  The sequence '$0' is replace by the original
  311.           filename.  Additionally, the sequence '[_s_e_q_1,_s_e_q_2]' is
  312.           replaced by _s_e_q_1 if _s_e_q_1 is not a null string; other-
  313.           wise it is replaced by _s_e_q_2.  For example, the command
  314.           "nmap $1.$2.$3 [$1,$2].[$2,file]" would yield the out-
  315.           put filename "myfile.data" for input filenames
  316.           "myfile.data" and "myfile.data.old", "myfile.file" for
  317.           the input filename "myfile", and "myfile.myfile" for
  318.           the input filename ".myfile".  Spaces may be included
  319.           in _o_u_t_p_a_t_t_e_r_n, as in the example: nmap $1 |sed "s/
  320.           *$//" > $1 .  Use the '\' character to prevent special
  321.           treatment of the '$', '[', ']', and ',' characters.
  322.  
  323.      nnttrraannss [ _i_n_c_h_a_r_s [ _o_u_t_c_h_a_r_s ] ]
  324.  
  325.  
  326.  
  327. Sprite v1.0              April 29, 1985                         5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. FTP                       User Commands                       FTP
  335.  
  336.  
  337.  
  338.           Set or unset the filename character translation mechan-
  339.           ism.  If no arguments are specified, the filename char-
  340.           acter translation mechanism is unset.  If arguments are
  341.           specified, characters in remote filenames are
  342.           translated during mmppuutt commands and ppuutt commands issued
  343.           without a specified remote target filename.  If argu-
  344.           ments are specified, characters in local filenames are
  345.           translated during mmggeett commands and ggeett commands issued
  346.           without a specified local target filename.  This com-
  347.           mand is useful when connecting to a non-UNIX remote
  348.           computer with different file naming conventions or
  349.           practices.  Characters in a filename matching a charac-
  350.           ter in _i_n_c_h_a_r_s are replaced with the corresponding
  351.           character in _o_u_t_c_h_a_r_s.  If the character's position in
  352.           _i_n_c_h_a_r_s is longer than the length of _o_u_t_c_h_a_r_s, the
  353.           character is deleted from the file name.
  354.  
  355.      ooppeenn _h_o_s_t [ _p_o_r_t ]
  356.           Establish a connection to the specified _h_o_s_t FTP
  357.           server.  An optional port number may be supplied, in
  358.           which case, _f_t_p will attempt to contact an FTP server
  359.           at that port.  If the _a_u_t_o-_l_o_g_i_n option is on
  360.           (default), _f_t_p will also attempt to automatically log
  361.           the user in to the FTP server (see below).
  362.  
  363.      pprroommpptt
  364.           Toggle interactive prompting.  Interactive prompting
  365.           occurs during multiple file transfers to allow the user
  366.           to selectively retrieve or store files.  If prompting
  367.           is turned off (default is on), any mmggeett or mmppuutt will
  368.           transfer all files, and any mmddeelleettee will delete all
  369.           files.
  370.  
  371.      pprrooxxyy _f_t_p-_c_o_m_m_a_n_d
  372.           Execute an ftp command on a secondary control connec-
  373.           tion.  This command allows simultaneous connection to
  374.           two remote ftp servers for transferring files between
  375.           the two servers.  The first pprrooxxyy command should be an
  376.           ooppeenn, to establish the secondary control connection.
  377.           Enter the command "proxy ?" to see other ftp commands
  378.           executable on the secondary connection.  The following
  379.           commands behave differently when prefaced by pprrooxxyy:
  380.           ooppeenn will not define new macros during the auto-login
  381.           process, cclloossee will not erase existing macro defini-
  382.           tions, ggeett and mmggeett transfer files from the host on the
  383.           primary control connection to the host on the secondary
  384.           control connection, and ppuutt, mmppuutt, and aappppeenndd transfer
  385.           files from the host on the secondary control connection
  386.           to the host on the primary control connection.  Third
  387.           party file transfers depend upon support of the ftp
  388.           protocol PASV command by the server on the secondary
  389.           control connection.
  390.  
  391.  
  392.  
  393. Sprite v1.0              April 29, 1985                         6
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. FTP                       User Commands                       FTP
  401.  
  402.  
  403.  
  404.      ppuutt _l_o_c_a_l-_f_i_l_e [ _r_e_m_o_t_e-_f_i_l_e ]
  405.           Store a local file on the remote machine.  If _r_e_m_o_t_e-
  406.           _f_i_l_e is left unspecified, the local file name is used
  407.           after processing according to any _n_t_r_a_n_s or _n_m_a_p set-
  408.           tings in naming the remote file.  File transfer uses
  409.           the current settings for _t_y_p_e, _f_o_r_m_a_t, _m_o_d_e, and _s_t_r_u_c_-
  410.           _t_u_r_e.
  411.  
  412.      ppwwdd  Print the name of the current working directory on the
  413.           remote machine.
  414.  
  415.      qquuiitt A synonym for bbyyee.
  416.  
  417.      qquuoottee _a_r_g_1 _a_r_g_2 ...
  418.           The arguments specified are sent, verbatim, to the
  419.           remote FTP server.
  420.  
  421.      rreeccvv _r_e_m_o_t_e-_f_i_l_e [ _l_o_c_a_l-_f_i_l_e ]
  422.           A synonym for get.
  423.  
  424.      rreemmootteehheellpp [ _c_o_m_m_a_n_d-_n_a_m_e ]
  425.           Request help from the remote FTP server.  If a
  426.           _c_o_m_m_a_n_d-_n_a_m_e is specified it is supplied to the server
  427.           as well.
  428.  
  429.      rreennaammee [ _f_r_o_m ] [ _t_o ]
  430.           Rename the file _f_r_o_m on the remote machine, to the file
  431.           _t_o.
  432.  
  433.      rreesseett
  434.           Clear reply queue.  This command re-synchronizes
  435.           command/reply sequencing with the remote ftp server.
  436.           Resynchronization may be neccesary following a viola-
  437.           tion of the ftp protocol by the remote server.
  438.  
  439.      rrmmddiirr _d_i_r_e_c_t_o_r_y-_n_a_m_e
  440.           Delete a directory on the remote machine.
  441.  
  442.      rruunniiqquuee
  443.           Toggle storing of files on the local system with unique
  444.           filenames.  If a file already exists with a name equal
  445.           to the target local filename for a ggeett or mmggeett command,
  446.           a ".1" is appended to the name.  If the resulting name
  447.           matches another existing file, a ".2" is appended to
  448.           the original name.  If this process continues up to
  449.           ".99", an error message is printed, and the transfer
  450.           does not take place.  The generated unique filename
  451.           will be reported.  Note that rruunniiqquuee will not affect
  452.           local files generated from a shell command (see below).
  453.           The default value is off.
  454.  
  455.      sseenndd _l_o_c_a_l-_f_i_l_e [ _r_e_m_o_t_e-_f_i_l_e ]
  456.  
  457.  
  458.  
  459. Sprite v1.0              April 29, 1985                         7
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. FTP                       User Commands                       FTP
  467.  
  468.  
  469.  
  470.           A synonym for put.
  471.  
  472.      sseennddppoorrtt
  473.           Toggle the use of PORT commands.  By default, _f_t_p will
  474.           attempt to use a PORT command when establishing a con-
  475.           nection for each data transfer.  The use of PORT com-
  476.           mands can prevent delays when performing multiple file
  477.           transfers. If the PORT command fails, _f_t_p will use the
  478.           default data port.  When the use of PORT commands is
  479.           disabled, no attempt will be made to use PORT commands
  480.           for each data transfer.  This is useful for certain FTP
  481.           implementations which do ignore PORT commands but,
  482.           incorrectly, indicate they've been accepted.
  483.  
  484.      ssttaattuuss
  485.           Show the current status of _f_t_p.
  486.  
  487.      ssttrruucctt [ _s_t_r_u_c_t-_n_a_m_e ]
  488.           Set the file transfer _s_t_r_u_c_t_u_r_e to _s_t_r_u_c_t-_n_a_m_e.  By
  489.           default "stream" structure is used.
  490.  
  491.      ssuunniiqquuee
  492.           Toggle storing of files on remote machine under unique
  493.           file names.  Remote ftp server must support ftp proto-
  494.           col STOU command for successful completion.  The remote
  495.           server will report unique name.  Default value is off.
  496.  
  497.      tteenneexx
  498.           Set the file transfer type to that needed to talk to
  499.           TENEX machines.
  500.  
  501.      ttrraaccee
  502.           Toggle packet tracing.
  503.  
  504.      ttyyppee [ _t_y_p_e-_n_a_m_e ]
  505.           Set the file transfer _t_y_p_e to _t_y_p_e-_n_a_m_e.  If no type is
  506.           specified, the current type is printed.  The default
  507.           type is network ASCII.
  508.  
  509.      uusseerr _u_s_e_r-_n_a_m_e [ _p_a_s_s_w_o_r_d ] [ _a_c_c_o_u_n_t ]
  510.           Identify yourself to the remote FTP server.  If the
  511.           password is not specified and the server requires it,
  512.           _f_t_p will prompt the user for it (after disabling local
  513.           echo).  If an account field is not specified, and the
  514.           FTP server requires it, the user will be prompted for
  515.           it.  If an account field is specified, an account com-
  516.           mand will be relayed to the remote server after the
  517.           login sequence is completed if the remote server did
  518.           not require it for logging in.  Unless _f_t_p is invoked
  519.           with "auto-login" disabled, this process is done
  520.           automatically on initial connection to the FTP server.
  521.  
  522.  
  523.  
  524.  
  525. Sprite v1.0              April 29, 1985                         8
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. FTP                       User Commands                       FTP
  533.  
  534.  
  535.  
  536.      vveerrbboossee
  537.           Toggle verbose mode.  In verbose mode, all responses
  538.           from the FTP server are displayed to the user.  In
  539.           addition, if verbose is on, when a file transfer com-
  540.           pletes, statistics regarding the efficiency of the
  541.           transfer are reported.  By default, verbose is on.
  542.  
  543.      ?? [ _c_o_m_m_a_n_d ]
  544.           A synonym for help.
  545.  
  546.      Command arguments which have embedded spaces may be quoted
  547.      with quote (") marks.
  548.  
  549. AABBOORRTTIINNGG AA FFIILLEE TTRRAANNSSFFEERR
  550.      To abort a file transfer, use the terminal interrupt key
  551.      (usually Ctrl-C).  Sending transfers will be immediately
  552.      halted.  Receiving transfers will be halted by sending a ftp
  553.      protocol ABOR command to the remote server, and discarding
  554.      any further data received.  The speed at which this is
  555.      accomplished depends upon the remote server's support for
  556.      ABOR processing.  If the remote server does not support the
  557.      ABOR command, an "ftp>" prompt will not appear until the
  558.      remote server has completed sending the requested file.
  559.  
  560.      The terminal interrupt key sequence will be ignored when _f_t_p
  561.      has completed any local processing and is awaiting a reply
  562.      from the remote server.  A long delay in this mode may
  563.      result from the ABOR processing described above, or from
  564.      unexpected behavior by the remote server, including viola-
  565.      tions of the ftp protocol.  If the delay results from unex-
  566.      pected remote server behavior, the local _f_t_p program must be
  567.      killed by hand.
  568.  
  569. FFIILLEE NNAAMMIINNGG CCOONNVVEENNTTIIOONNSS
  570.      Files specified as arguments to _f_t_p commands are processed
  571.      according to the following rules.
  572.  
  573.      1)   If the file name "-" is specified, the ssttddiinn (for read-
  574.           ing) or ssttddoouutt (for writing) is used.
  575.  
  576.      2)   If the first character of the file name is "|", the
  577.           remainder of the argument is interpreted as a shell
  578.           command.  _F_t_p then forks a shell, using _p_o_p_e_n(3) with
  579.           the argument supplied, and reads (writes) from the
  580.           stdout (stdin).  If the shell command includes spaces,
  581.           the argument must be quoted; e.g. ""| ls -lt"".  A par-
  582.           ticularly useful example of this mechanism is: "dir
  583.           |more".
  584.  
  585.      3)   Failing the above checks, if ``globbing'' is enabled,
  586.           local file names are expanded according to the rules
  587.           used in the _c_s_h(1); c.f. the _g_l_o_b command. If the _f_t_p
  588.  
  589.  
  590.  
  591. Sprite v1.0              April 29, 1985                         9
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. FTP                       User Commands                       FTP
  599.  
  600.  
  601.  
  602.           command expects a single local file ( .e.g.  ppuutt), only
  603.           the first filename generated by the "globbing" opera-
  604.           tion is used.
  605.  
  606.      4)   For mmggeett commands and ggeett commands with unspecified
  607.           local file names, the local filename is the remote
  608.           filename, which may be altered by a ccaassee, nnttrraannss, or
  609.           nnmmaapp setting.  The resulting filename may then be
  610.           altered if rruunniiqquuee is on.
  611.  
  612.      5)   For mmppuutt commands and ppuutt commands with unspecified
  613.           remote file names, the remote filename is the local
  614.           filename, which may be altered by a nnttrraannss or nnmmaapp set-
  615.           ting.  The resulting filename may then be altered by
  616.           the remote server if ssuunniiqquuee is on.
  617.  
  618. FFIILLEE TTRRAANNSSFFEERR PPAARRAAMMEETTEERRSS
  619.      The FTP specification specifies many parameters which may
  620.      affect a file transfer.  The _t_y_p_e may be one of "ascii",
  621.      "image" (binary), "ebcdic", and "local byte size" (for PDP-
  622.      10's and PDP-20's mostly).  _F_t_p supports the ascii and image
  623.      types of file transfer, plus local byte size 8 for tteenneexx
  624.      mode transfers.
  625.  
  626.      _F_t_p supports only the default values for the remaining file
  627.      transfer parameters: _m_o_d_e, _f_o_r_m, and _s_t_r_u_c_t.
  628.  
  629. OOPPTTIIOONNSS
  630.      Options may be specified at the command line, or to the com-
  631.      mand interpreter.
  632.  
  633.      The --vv (verbose on) option forces _f_t_p to show all responses
  634.      from the remote server, as well as report on data transfer
  635.      statistics.
  636.  
  637.      The --nn option restrains _f_t_p from attempting "auto-login"
  638.      upon initial connection.  If auto-login is enabled, _f_t_p will
  639.      check the ._n_e_t_r_c (see below) file in the user's home direc-
  640.      tory for an entry describing an account on the remote
  641.      machine.  If no entry exists, _f_t_p will prompt for the remote
  642.      machine login name (default is the user identity on the
  643.      local machine), and, if necessary, prompt for a password and
  644.      an account with which to login.
  645.  
  646.      The --ii option turns off interactive prompting during multi-
  647.      ple file transfers.
  648.  
  649.      The --dd option enables debugging.
  650.  
  651.      The --gg option disables file name globbing.
  652.  
  653.  
  654.  
  655.  
  656.  
  657. Sprite v1.0              April 29, 1985                        10
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. FTP                       User Commands                       FTP
  665.  
  666.  
  667.  
  668. TTHHEE ..nneettrrcc FFIILLEE
  669.      The .netrc file contains login and initialization informa-
  670.      tion used by the auto-login process.  It resides in the
  671.      user's home directory.  The following tokens are recognized;
  672.      they may be separated by spaces, tabs, or new-lines:
  673.  
  674.      mmaacchhiinnee _n_a_m_e
  675.           Identify a remote machine name.  The auto-login process
  676.           searches the .netrc file for a mmaacchhiinnee token that
  677.           matches the remote machine specified on the _f_t_p command
  678.           line or as an ooppeenn command argument.  Once a match is
  679.           made, the subsequent .netrc tokens are processed, stop-
  680.           ping when the end of file is reached or another mmaacchhiinnee
  681.           token is encountered.
  682.  
  683.      llooggiinn _n_a_m_e
  684.           Identify a user on the remote machine.  If this token
  685.           is present, the auto-login process will initiate a
  686.           login using the specified name.
  687.  
  688.      ppaasssswwoorrdd _s_t_r_i_n_g
  689.           Supply a password.  If this token is present, the
  690.           auto-login process will supply the specified string if
  691.           the remote server requires a password as part of the
  692.           login process.  Note that if this token is present in
  693.           the .netrc file, _f_t_p will abort the auto-login process
  694.           if the .netrc is readable by anyone besides the user.
  695.  
  696.      aaccccoouunntt _s_t_r_i_n_g
  697.           Supply an additional account password.  If this token
  698.           is present, the auto-login process will supply the
  699.           specified string if the remote server requires an addi-
  700.           tional account password, or the auto-login process will
  701.           initiate an ACCT command if it does not.
  702.  
  703.      mmaaccddeeff _n_a_m_e
  704.           Define a macro.  This token functions like the _f_t_p mmaacc--
  705.           ddeeff command functions.  A macro is defined with the
  706.           specified name; its contents begin with the next .netrc
  707.           line and continue until a null line (consecutive new-
  708.           line characters) is encountered.  If a macro named _i_n_i_t
  709.           is defined, it is automatically executed as the last
  710.           step in the auto-login process.
  711.  
  712. BBUUGGSS
  713.      Correct execution of many commands depends upon proper
  714.      behavior by the remote server.
  715.  
  716.      An error in the treatment of carriage returns in the 4.2BSD
  717.      UNIX ascii-mode transfer code has been corrected.  This
  718.      correction may result in incorrect transfers of binary files
  719.      to and from 4.2BSD servers using the ascii type.  Avoid this
  720.  
  721.  
  722.  
  723. Sprite v1.0              April 29, 1985                        11
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. FTP                       User Commands                       FTP
  731.  
  732.  
  733.  
  734.      problem by using the binary image type.
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789. Sprite v1.0              April 29, 1985                        12
  790.  
  791.  
  792.  
  793.